package com.example.mapper;

import com.example.entity.Room;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoomMapper {
    List<Room> selectAll(Room room);

    void insert(Room room);


    void updateById(Room room);

    @Delete("delete from `room` where id=#{id}")
    void deleteById(Integer id);


    @Select("select * from room where id=#{id}")
    Room selectById(Integer id);
}
